package com.qf.day04;

import java.util.Scanner;

public class zuoye {
    /**
     * 回文数字
     * @param shu
     */
    public static void huiwen(int shu){
        int shuCopy = shu;
        int reversal=0;
        while (shuCopy!=0){
            reversal=reversal*10+(shuCopy%10);
            shuCopy=shuCopy/10;
        }
//        System.out.println(reversal);
        if(shu==reversal){
            System.out.println("是回文数字");
        }else {
            System.out.println("不是回文数字");
        }
    }
    public static void main(String[] args) {
        huiwen(123321);
        huiwen(1113111);
    }
}
